


import 'package:bike_ride/common/mvvm/base_view_model.dart';
import 'package:bike_ride/common/widget/notifier_widget.dart';
import 'package:bike_ride/model/order_detail/view/order_detail_v.dart';
import 'package:dio/dio.dart';

class OrderDetailViewModel extends PageViewModel<OrderDetailViewState> {
  CancelToken? cancelToken;

  late String orderId;
  @override
  onCreate() {
    cancelToken = CancelToken();
    pageDataModel = PageDataModel();
    orderId = state.widget.arguments['order_id'];
  }

  @override
  onDispose() {
    if (!(cancelToken?.isCancelled ?? true)) {
      cancelToken?.cancel();
    }
    super.onDispose();
  }


  /// 请求数据
  @override
  Future<PageViewModel?> requestData({Map<String, dynamic>? params}) async {
    return null;

  }
}